{__NOLAYOUT__}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="<?php echo isset($KEYWORD) ? $KEYWORD : ''; ?>" />
    <meta name="description" content="<?php echo isset($DESCRIPTION) ? $DESCRIPTION : ''; ?>" />
    <base href="<?php echo WEBSITE; ?>" />
    <title>
    <?php 
        if (isset($FULL_TITLE)) {
            echo $FULL_TITLE;
        }
        else {
            echo isset($TITLE) ? $TITLE . '_' : '';
            echo 'mrmsl';
        }
    ?>
    </title>
    <?php 
        echo css('common'); 
        isset($CSS) && print(css($CSS));
    ?>
</head>
<body>
<table class="tb-table tb-mouse" cellpadding="3" cellspacing="1" style="margin: 10px auto;">
    <thead>
        <tr>
            <th colspan="10">管理员管理</th>
        </tr>
    </thead>
    <tbody>
        <tr class="bg-odd">
            <th>用户id</th>
            <th>用户名</th>
            <th>真实姓名</th>
            <th>所属角色</th>
            <th>添加时间</th>
            <th>最后登陆时间</th>
            <th>最后登陆ip</th>
            <th>登陆次数</th>
            <th>授权</th>
            <th>操作</th>
        </tr>
        <?php
        $i = 0; 
        foreach ($data as $k => $item) { ?>
        <tr class="<?php echo $k % 2 == 0 ? 'bg-even' : 'bg-odd'; ?>">
            <td><?php echo $item['said']; ?></td>
            <td><?php echo $item['sa_user']; ?></td>
            <td><?php echo $item['real_name']; ?></td>
            <td><?php echo $group[$item['group_id']]; ?></td>
            <td><?php echo empty($item['add_time']) ? '' : date(DATE_FORMAT, $item['add_time']); ?></td>
            <td><?php echo empty($item['last_time']) ? '' : date(DATE_FORMAT, $item['last_time']); ?></td>
            <td><?php $item['last_ip']; ?></td>
            <td><?php $item['logins']; ?></td>
            <td><a href="admin/clear/id/<?php $item['said']; ?>">清理授权</a></td>
            <td>
                <a href="admin/add/id/<?php $item['said']; ?>">编辑</a>
                <a href="admin/delete/id/<?php $item['said']; ?>">删除</a>
            </td>
        </tr>
        <?php
            $i++;
            }
        ?>
    </tbody>
</table>
<?php 
    echo js('common'); 
    isset($other_js) && print(js($other_js, false));
    echo '<!--', execute_time(), '-->';
?>
</body>
</html>